package com.meimeixia.pattern.singleton.demo2;

/**
 * @author: t-zhijiang.zhao
 * @date: 2024/11/26 上午9:01
 */
public class Client {
    public static void main(String[] args) {
        Singleton instance = Singleton.getInstance();
        Singleton instance1 = Singleton.getInstance();
        // 判断两次获取到的Singleton对象是否是同一个对象
        System.out.println(instance == instance1);//true
    }
}
